powerpc: vdso: Make vdso32 installation conditional in vdso_install
authorBen Hutchings <ben@decadent.org.uk>
Fri, 22 Mar 2019 03:30:10 +0000 (03:30 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
The 32-bit vDSO is not needed and not normally built for 64-bit
little-endian configurations.  However, the vdso_install target still
builds and installs it.  Add the same config condition as is normally
used for the build.

Fixes: e0d005916994 ("powerpc/vdso: Disable building the 32-bit VDSO ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-vdso-make-vdso32-installation-conditional-in.patch

arch/powerpc/Makefile

index 8d63aa3ac059936b2aa8413d0d68ed5f8bd6a3f8..31fd2e54556ba04acf4aac47bad84f5e3997ae32 100644 (file)
@@ -403,7 +403,9 @@ vdso_install:
 ifdef CONFIG_PPC64
        $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@
 endif
+ifdef CONFIG_VDSO32
        $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@
+endif
 
 archclean:
        $(Q)$(MAKE) $(clean)=$(boot)